import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default({
  namespaced:true,
  state: {
    kind:['default'],//分类查询
  },
  mutations: {
    findWithKind(state,kind){
      if(state.kind.length>0 && state.kind[0]=='default'){
        state.kind.splice(0,1);
      }
      state.kind=kind;
      console.log('********vues-good-kind')
      console.log(state.kind);
    },
    clearKind(state){
      state.kind=['default'];
    }
  }
})



